home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / dfpp01.zip / CHECKBOX.H < prev    next >
C/C++ Source or Header  |  1992-12-13  |  640b  |  28 lines

  1. // ----------- checkbox.h
  2.  
  3. #ifndef CHECKBOX_H
  4. #define CHECKBOX_H
  5.  
  6. #include "textbox.h"
  7.  
  8. class CheckBox : public TextBox    {
  9.     virtual void SetColors();
  10.     Bool setting;
  11. public:
  12.     CheckBox(char *lbl, int lf, int tp, DFWindow *par);
  13.     virtual ~CheckBox()
  14.         { if (windowstate != CLOSED) CloseWindow(); }
  15.     // -------- API messages
  16.     virtual void OpenWindow();
  17.     virtual void CloseWindow();
  18.     virtual Bool SetFocus();
  19.     virtual void ResetFocus();
  20.     virtual void Paint();
  21.     virtual void Keyboard(int key);
  22.     virtual void LeftButton(int mx, int my);
  23.     void InvertCheckBox();
  24. };
  25.  
  26. #endif
  27.  
  28.